package com.glink.manage.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-08
*/
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ConstructionWorkSite对象", description = "施工工程-工程现场")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "construction_work_site", resultMap = "BaseResultMap")
public class ConstructionWorkSiteBean extends Model<ConstructionWorkSiteBean> {

    private static final long serialVersionUID = 1749524307517384644L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "obj_id")
    private String objId;

    @ApiModelProperty(value = "施工工程ID")
    private String constructionWorkObjId;

    @ApiModelProperty(value = "现场名称")
    private String siteName;

    @ApiModelProperty(value = "现场负责人")
    private String superintendent;

    @ApiModelProperty(value = "联系电话")
    private String contactNumber;

    @ApiModelProperty(value = "建设状态")
    private String status;

    @ApiModelProperty(value = "是否删除；0否，1是")
    private String ifDelete;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(value = "地名")
    private String area;

    @ApiModelProperty(value = "地区")
    private String distric;

    @ApiModelProperty(value = "地区code")
    private String areaCode;

    @ApiModelProperty(value = "地名id")
    private String areaid;

    @ApiModelProperty(value = "城市所在省，云南")
    private String prov;

    @ApiModelProperty(value = "授权码")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String grantCode;
    
    @ApiModelProperty(value = "是否授权")
//    @TableLogic(value = "1", delval = "0")
//    private String ifGrant = "0";
    private String ifGrant = "1";
}
